home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / propdlg / shapedoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.4 KB  |  57 lines

  1. // shapesdoc.h : interface of the CShapesDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include <afxtempl.h>
  14.  
  15. class CShapesDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CShapesDoc();
  19.     DECLARE_DYNCREATE(CShapesDoc)
  20.  
  21. // Attributes
  22. public:
  23.     CTypedPtrList<CObList, CShape*> m_shapeList;
  24.  
  25. // Operations
  26. public:
  27.     void AddShape(CShape* pShapeNew);
  28.     CShape* HitTest(CPoint pt);
  29.  
  30. // Overrides
  31.     // ClassWizard generate virtual function overrides
  32.     //{{AFX_VIRTUAL(CShapesDoc)
  33.     protected:
  34.     virtual BOOL OnNewDocument();
  35.     virtual BOOL SaveModified();
  36.     //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. public:
  40.     virtual ~CShapesDoc();
  41.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CShapesDoc)
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.